//<![CDATA[
if (top != self) top.location.href = self.location.href;
function updatelink() {
        var affid       = 'klikwae-21';
        var text        = document.getElementsByTagName('body')[0].innerHTML;
        var exp         = /href="http:\/\/(bf3shop.com|csszip.com|localhost)\/(\w+)\/(\w+)\//g;
        text    = text.replace(exp,"href=\"#\" onclick=\"window.open('http://www.amazon.fr/dp/$3/?tag="+affid+"');return false;\" rel=\"nofollow\" class=\""); 
        exp             = /<span region="(\w+)" asin="(\w+)">/g;
        text    = text.replace(exp,"<span onclick=\"window.open('http://www.amazon.$1/dp/$2/?tag="+affid+"');return false;\" style=\"cursor:pointer\">"); 
        exp             = /http:\/\/(bf3shop.com|csszip.com|(fr.|ita.|uk.|es.)?grobag.biz|(ca.)?iowatra.mobi|localhost)\/(\w+)\/(\w+)\//g;
        text = text.replace(exp,"#"); 
        
        document.getElementsByTagName('body')[0].innerHTML = text;
}
function updatelinkstore() {
	      var astore	= 'http://astore.amazon.de/fortradde-21/';
        var text        = document.getElementsByTagName('body')[0].innerHTML;
        var exp         = /href="http:\/\/(bf3shop.com|csszip.com|localhost)\/(\w+)\/(\w+)\//g;
        text    = text.replace(exp,"href=\"#\" onclick=\"window.open('"+astore+"detail/$3/');return false;\" rel=\"nofollow\" class=\""); 
        exp             = /<span region="(\w+)" asin="(\w+)">/g;
        text    = text.replace(exp,"<span onclick=\"window.open('"+astore+"detail/$2/');return false;\" style=\"cursor:pointer\">"); 
        exp             = /http:\/\/(bf3shop.com|csszip.com|(fr.|ita.|uk.|es.)?grobag.biz|(ca.)?iowatra.mobi|localhost)\/(\w+)\/(\w+)\//g;
        text = text.replace(exp,"#"); 
        
        document.getElementsByTagName('body')[0].innerHTML = text;
}
function redir2store() {
	var astore	= 'http://astore.amazon.de/imdber-21/';
	var text	= document.getElementsByTagName('body')[0].innerHTML;

	var exp = /<span region=\"(\w+)\" asin=\"(\w+)\"/i;
	var asin = text.match(exp)[2];
	if (asin!=null) {top.location.href = astore+'detail/'+asin;}
	
	var exp = /(bf3shop.com|csszip.com|grobag.biz|iowatra.mobi|localhost)\/\w+\/(\w+)\//i;
	var asin = text.match(exp)[2];
	if (asin!=null) {top.location.href = astore+'detail/'+asin;}
}

function redir2url() {
	var astore	= 'http://www.klikwae.info/';
	var text	= document.getElementsByTagName('body')[0].innerHTML;

	var exp = /<span region=\"(\w+)\" asin=\"(\w+)\"/i;
	var asin = text.match(exp)[2];
	if (asin!=null) {top.location.href = astore;}
	
	var exp = /(bf3shop.com|csszip.com|grobag.biz|iowatra.mobi|localhost)\/\w+\/(\w+)\//i;
	var asin = text.match(exp)[2];
	if (asin!=null) {top.location.href = astore;}
}
setTimeout('updatelinkstore()',10);

//fblike
//document.write ("<script language='javascript' src='http://fbpagelike.googlecode.com/svn/sonderangebote.js'/></script>");
/*
  var vglnk = { api_url: '//api.viglink.com/api',
                key: 'f4c21faf4abf7b6650d8044af7e318e3' };

  (function(d, t) {
    var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
    s.src = ('https:' == document.location.protocol ? vglnk.api_url :
             '//cdn.viglink.com/api') + '/vglnk.js';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, 'script'));
*/
//]]>